package com.dingding.common.core.util.paravalidate;

import java.util.ArrayList;
import java.util.List;

public class ValiResult {

	private boolean isAvailable; // bean是否可用 （true：可用）（false：不可用）

	private String nullFieldName; // 为空的字段

	private List<String> nullFieldList; // 空字段集合

	public void setValue(boolean isAvailable, String nullFieldName) {
		this.isAvailable = isAvailable;
		this.nullFieldName = nullFieldName;
	}

	public boolean isAvailable() {
		return isAvailable;
	}

	public void setAvailable(boolean isAvailable) {
		this.isAvailable = isAvailable;
	}

	public String getNullFieldName() {
		return nullFieldName;
	}

	public void setNullFieldName(String nullFieldName) {
		this.nullFieldName = nullFieldName;
	}

	public List<String> getNullFieldList() {

		if (this.nullFieldList == null) {
			this.nullFieldList = new ArrayList<String>();
		}
		return nullFieldList;

	}

	public void setNullFieldList(List<String> nullFieldList) {
		this.nullFieldList = nullFieldList;
	}

}
